<?php 

	
	include '../../function.php';
	// include  './add.php';
	// foreach (glob('./tmpe/*') as $k => $v) {
		

	// }
	// foreach ($variable as $key => $value) {
	// 	# code...
	// }
	$glob = glob('./tmpe/*');
	$count =0;
	foreach ($glob as $k => $v) {
		++$count;
	}
	$num=3;
	//获取总页数
	$pages = ceil($count/$num);
	//获取当前页数
	$page = isset($_GET['p']) ? $_GET['p'] : 1;;
	//获取偏移量
	$offet = ($page-1)*$num;
	array_slice($glob, $offet,true);
	include './Tpl/index.html';











 ?>